<?php
/* SVN FILE: $Id$ */
/* TcEstadoMora Test cases generated on: 2009-06-17 23:06:49 : 1245301009*/
App::import('Model', 'TcEstadoMora');

class TcEstadoMoraTestCase extends CakeTestCase {
	var $TcEstadoMora = null;
	var $fixtures = array('app.tc_estado_mora', 'app.tc_mora');

	function startTest() {
		$this->TcEstadoMora =& ClassRegistry::init('TcEstadoMora');
	}

	function testTcEstadoMoraInstance() {
		$this->assertTrue(is_a($this->TcEstadoMora, 'TcEstadoMora'));
	}

	function testTcEstadoMoraFind() {
		$this->TcEstadoMora->recursive = -1;
		$results = $this->TcEstadoMora->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('TcEstadoMora' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'created'  => '2009-06-17',
			'modified'  => '2009-06-17',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>